package com.lcx.movie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lcx.movie.entity.Cinemasnack;
import com.lcx.movie.mapper.CinemaMapper;
import com.lcx.movie.mapper.CinemasnackMapper;
import com.lcx.movie.service.CinemasnackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 李丽君
 * @version 1.0
 * @Description 影院零食实现类
 * @date 2025/3/26 14:03
 */
@Service
public class CinemasnackServiceImpl extends ServiceImpl<CinemasnackMapper,Cinemasnack> implements CinemasnackService {
   @Autowired
   private CinemasnackMapper cinemasnackMapper;

    /**
     * 新增影院零食
     * @param cinemasnack 影院零食对象
     * @return 受影响的行数
     */
    @Override
    public int insertCinemasnack(Cinemasnack cinemasnack) {
        return cinemasnackMapper.insertCinemasnack(cinemasnack);
    }
}
